<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
	<div region="center" style="padding:1px;">
		<t:datagrid name="cbsFaultCodeList" checkbox="true" fitColumns="false" title="故障代码" 
			actionUrl="cbsFaultCodeController.do?datagrid" idField="id" fit="true" queryMode="group">
			<t:dgCol title="主键"	field="id"  hidden="true"  queryMode="single"  width="120"/>
			<t:dgCol title="故障代码"	field="code"	queryMode="single"  width="120" query="true"/>
			<t:dgCol title="适用机型"	field="applyModel"	queryMode="single"  width="320"/>
			<t:dgCol title="故障说明"	field="title"    queryMode="single"  width="120" query="true"/>
			<%--<t:dgCol title="解决方案"  field="solution"    queryMode="group"  width="120"/>--%>
			
			<t:dgCol title="创建人"	field="createName"  queryMode="single"  width="120"></t:dgCol>
			<t:dgCol title="创建日期"	field="createDate" formatter="yyyy-MM-dd" queryMode="group"  width="120"/>
			<t:dgCol title="更新人"	field="updateName"  queryMode="single"  width="120"/>
			<t:dgCol title="更新日期"	field="updateDate" formatter="yyyy-MM-dd"   queryMode="group"  width="120"/>
			
			<t:dgCol title="操作" field="opt" width="100"/>
			<t:dgDelOpt	title="删除" url="cbsFaultCodeController.do?doDel&id={id}" />
			<t:dgToolBar title="录入" icon="icon-add" url="cbsFaultCodeController.do?goAdd" funname="add" width="1100" height="600"/>
			<t:dgToolBar title="编辑" icon="icon-edit" url="cbsFaultCodeController.do?goUpdate" funname="update" width="1100" height="600"/>
<%--			<t:dgToolBar title="批量删除"  icon="icon-remove" url="cbsFaultCodeController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>--%>
<%--			<t:dgToolBar title="查看" icon="icon-search" url="cbsFaultCodeController.do?goView" funname="detail"/>--%>
<%--			<t:dgToolBar title="导入" icon="icon-put" funname="ImportXls"></t:dgToolBar>--%>
<%--			<t:dgToolBar title="导出" icon="icon-putout" funname="ExportXls"></t:dgToolBar>--%>
<%--		<t:dgToolBar title="模板下载" icon="icon-putout" funname="ExportXlsByT"></t:dgToolBar>--%>
		</t:datagrid>
	</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
	//给时间控件加上样式
	$("#cbsFaultCodeListtb").find("input[name='createDate_begin']").attr("class","Wdate").attr("style","height:20px;width:90px;").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
	$("#cbsFaultCodeListtb").find("input[name='createDate_end']").attr("class","Wdate").attr("style","height:20px;width:90px;").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
	$("#cbsFaultCodeListtb").find("input[name='updateDate_begin']").attr("class","Wdate").attr("style","height:20px;width:90px;").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
	$("#cbsFaultCodeListtb").find("input[name='updateDate_end']").attr("class","Wdate").attr("style","height:20px;width:90px;").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
});
 
//导入
function ImportXls() {
	openuploadwin('Excel导入', 'cbsFaultCodeController.do?upload', "cbsFaultCodeList");
}

//导出
function ExportXls() {
	JeecgExcelExport("cbsFaultCodeController.do?exportXls","cbsFaultCodeList");
}

//模板下载
function ExportXlsByT() {
	JeecgExcelExport("cbsFaultCodeController.do?exportXlsByT","cbsFaultCodeList");
}
 </script>